package com.github.base.dto.user;

import com.github.base.validated.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @description: 账号DTO
 * @author: liSong
 * @date: 2021/1/28 10:11
 **/

@Data
public class UserUpdateDTO {

    @NotNull(message = "id不能为空", groups = Update.class)
    @Schema(description = "修改的用户id")
    private Integer id;

    @NotBlank(message = "姓名不能为空")
    @Schema(description = "姓名")
    private String name;


    @Schema(description = "所属部门id")
    private Long deptId;

    @Schema(description = "角色id")
    private List<Long> roleId;


    @Schema(description = "启用状态（1-是，0-否）")
    private Integer usable;

}
